!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){var r,o,i,a,s,c,u,l;if(function(){"use strict";if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var t=window.document,e=[];r.prototype.THROTTLE_TIMEOUT=100,r.prototype.POLL_INTERVAL=null,r.prototype.USE_MUTATION_OBSERVER=!0,r.prototype.observe=function(t){if(!this._observationTargets.some((function(e){return e.element==t}))){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},r.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t})),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},r.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},r.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},r.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter((function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]}))},r.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}}));return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},r.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(o(window,"resize",this._checkForIntersections,!0),o(t,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in window&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},r.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,i(window,"resize",this._checkForIntersections,!0),i(t,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},r.prototype._checkForIntersections=function(){var t=this._rootIsInDom(),e=t?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(r){var o=r.element,i=a(o),s=this._rootContainsTarget(o),c=r.entry,u=t&&s&&this._computeTargetAndRootIntersection(o,e),l=r.entry=new n({time:window.performance&&performance.now&&performance.now(),target:o,boundingClientRect:i,rootBounds:e,intersectionRect:u});c?t&&s?this._hasCrossedThreshold(c,l)&&this._queuedEntries.push(l):c&&c.isIntersecting&&this._queuedEntries.push(l):this._queuedEntries.push(l)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},r.prototype._computeTargetAndRootIntersection=function(e,n){if("none"!=window.getComputedStyle(e).display){for(var r,o,i,s,u,l,d,h,f=a(e),b=c(e),p=!1;!p;){var v=null,g=1==b.nodeType?window.getComputedStyle(b):{};if("none"==g.display)return;if(b==this.root||b==t?(p=!0,v=n):b!=t.body&&b!=t.documentElement&&"visible"!=g.overflow&&(v=a(b)),v&&(r=v,o=f,void 0,void 0,void 0,void 0,void 0,void 0,i=Math.max(r.top,o.top),s=Math.min(r.bottom,o.bottom),u=Math.max(r.left,o.left),h=s-i,!(f=(d=(l=Math.min(r.right,o.right))-u)>=0&&h>=0&&{top:i,bottom:s,left:u,right:l,width:d,height:h})))break;b=c(b)}return f}},r.prototype._getRootRect=function(){var e;if(this.root)e=a(this.root);else{var n=t.documentElement,r=t.body;e={top:0,left:0,right:n.clientWidth||r.clientWidth,width:n.clientWidth||r.clientWidth,bottom:n.clientHeight||r.clientHeight,height:n.clientHeight||r.clientHeight}}return this._expandRectByRootMargin(e)},r.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map((function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100})),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},r.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,r=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==r)for(var o=0;o=.5){n.target;n.timeoutId=setTimeout((function(){!function(t){l(t.contentId),e(t.element)}(n)}),1e3)}else clearTimeout(n.timeoutId),n.timeoutId=null}))}),r);function s(e){var n=Array.prototype.slice.call(e.querySelectorAll(t));return e.matches(t)&&n.push(e),n}function c(t){return t.bbcUahId}function u(t){var e=c(t);if(e){var n=o[e];if(n)return n}return null}function l(t){var e=o[t];e&&(a.unobserve(e.element),e.timeoutId&&clearTimeout(e.timeoutId),delete o[t])}function d(t){if(!u(t)){var e=t.getAttribute("data-bbc-uah-id");e||(e="uah_autoid_"+i,i++),function(t,e){!function(t,e){t.bbcUahId=e}(e,t),a.observe(e),o[t]={element:e,contentId:t,timeoutId:null}}(e,t)}}function h(t){s(t).forEach(d)}function f(t){s(t).map(c).forEach(l)}function b(t){return t instanceof Element||t instanceof HTMLDocument}h(document.body)}}.call((o={id:"detectview",exports:{},loaded:!1}).exports,n,o.exports,o),o.loaded=!0,void 0!==r||(r=o.exports),i=function(){return function(t){var e={internalUrl:/^(?:#(?:[^.]+\.)*)|(?:\/\/|https?:\/\/)?(?:[^.]+\.)*((bbc|bbci)(?:\.co\.uk|\.com))(:|\/|$)/i,downloadUrl:/.+\.(pdf|te?xt|rtf|docx?|xlsx?|pptx?|od[tpsgbf]|mp[234]|m4a|mpeg|exe|dmg|zip|tgz)$/i,email:/^mailto:/i};return t.href&&""!==t.href?e.email.test(t.href)?"email":e.internalUrl.test(t.href)||t.host===window.location.host?"internal":e.downloadUrl.test(t.href)?"download":"external":"none"}}.call((a={id:"getLinkType",exports:{},loaded:!1}).exports,n,a.exports,a),a.loaded=!0,void 0!==i||(i=a.exports),s=function(){return function t(e,n){return e.matches(n)?e:!!e.parentElement&&t(e.parentElement,n)}}.call((c={id:"getParentWithSelector",exports:{},loaded:!1}).exports,n,c.exports,c),c.loaded=!0,void 0!==s||(s=c.exports),u=function(t){function e(e){var n=t(e,"[data-stats]");return JSON.parse(n.getAttribute("data-stats")).link_location}function n(t){var n={"iplayer-video":"iplayer",video:"video",audio:"audio","iplayer-radio":"audio"};if(["message-banner","message-banner-signed-in"].indexOf(e(t))>-1)return"button";var r=t.getAttribute("data-bbc-asset-type");return n[r]?"card-"+n[r]:"card"}return function(r){var o=t(r,"[data-stats]"),i=Array.prototype.slice.call(document.querySelectorAll("[data-stats]")).indexOf(o)+1,a=Array.prototype.slice.call(r.parentElement.children).indexOf(r)+1;return{PAR:e(r)+"::"+i,CHD:n(r)+"::"+a}}}.apply(e,[s]),l=function(t,e,n){function r(t){return t.getAttribute("data-bbc-title")||t.getAttribute("data-bbc-content-label")||t.innerText.split("\n")[0]}function o(t){if(t.hasAttribute("data-bbc-event-type"))return t.getAttribute("data-bbc-event-type")}function i(t){return t.getAttribute("data-bbc-source")}function a(t){if("A"===t.tagName&&t.hasAttribute("href"))return t;for(var e=t.children||[],n=0;n-1;t.persisted&&e&&document.location.reload()})),t("[data-bbc-context],[data-bbc-container]",(function(t){if(!t.hasAttribute("data-bbc-ignore-views")){var n=new window.CustomEvent("bbc-user-event",{bubbles:!0,detail:e(t)});t.dispatchEvent(n)}}))}).apply(null,[r,l])})).catch(n.oe),Promise.resolve().then((function(){(function(t,e,n){var r=function(t){return null===t.which?4===t.button:1===t.button},o=function(o){if(function(t){return 0===t.button}(o)||r(o)){var i=e(o.target,"[data-bbc-container]"),a=e(o.target,"a, button"),s=n(a);if("external"===s&&(i||(i=e(o.target,"a:not([data-bbc-notrack])")),i&&i.hasAttribute("istats-notrack")&&(i=!1)),i&&a){var c="A"===a.tagName,u=-1===["download","email"].indexOf(s),l=i.hasAttribute("data-bbc-client-routed")||a.hasAttribute("data-bbc-client-routed"),d=c&&u&&!l&&window.__detectview.clickManagementEnabled,h=t(i);h.originalEvent=o,h.isClick=!0,d&&(!function(t,e,n){t.altKey||t.ctrlKey||t.metaKey||t.shiftKey||r(t)||e.target&&!e.target.match(/^_(self|parent|top)$/i)||(t.preventDefault(),setTimeout((function(){window.location.href=e.href}),n))}(o,a,1500),h.elem=a);var f=new window.CustomEvent("bbc-user-click",{bubbles:!0,detail:h});a.dispatchEvent(f)}}};["click","auxclick"].forEach((function(t){document.body.addEventListener(t,o)})),window.__detectview=window.__detectview||{clickManagementEnabled:!1},window&&window.__reverb&&window.__reverb.__reverbLoadedPromise&&window.__reverb.__reverbLoadedPromise.then((function(){window.__detectview.clickManagementEnabled=!0})).catch((function(){}))}).apply(null,[l,s,i])})).catch(n.oe)}]);